//
//  UIView+shadow.m
//  ISmart
//
//  Created by 郑信鸿 on 17/3/22.
//  Copyright © 2017年 郑信鸿. All rights reserved.
//

#import "UIView+shadow.h"

@implementation UIView (shadow)

- (void)addShadowToView{
    
    NSLog(@"%@",NSStringFromCGRect(self.bounds));
    //UIBezierPath *path = [UIBezierPath bezierPathWithRect:self.bounds];
    //[self.layer setShadowPath:[path CGPath]];
    self.layer.cornerRadius = 5;
   
    self.layer.shadowColor = RGBAColor(204, 204, 204, 1).CGColor;
    self.layer.shadowOffset = CGSizeMake(0, 2);
    self.layer.shadowOpacity = 0.5;
    self.layer.shadowRadius = 2;
    
}

@end
